<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="cbsProcurementNoteList" checkbox="true" fitColumns="false" title="采购单表" actionUrl="cbsProcurementNoteController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="ID "  field="id"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="客户类型  "  field="clientType"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="采购方  "  field="procurement"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="影院id  "  field="cinemaId"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="联系人id "  field="linkmanId"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="是否上门服务  "  field="isOnsiteServices"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="服务地点 "  field="servicePlace"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="保修期  "  field="warranty" formatter="yyyy-MM-dd"  query="true" queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="服务前提 "  field="servicesPremise"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备注 "  field="comment"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="服务描述 "  field="servicesDes"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="来源"  field="source"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="状态  "  field="state"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="createName"  field="createName"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="createBy"  field="createBy"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="createDate"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="updateName"  field="updateName"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="updateBy"  field="updateBy"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="updateDate"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="cbsProcurementNoteController.do?doDel&id={id}" />
   <t:dgToolBar title="录入" icon="icon-add" url="cbsProcurementNoteController.do?goAdd" funname="add"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="cbsProcurementNoteController.do?goUpdate" funname="update"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="cbsProcurementNoteController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="cbsProcurementNoteController.do?goUpdate" funname="detail"></t:dgToolBar>
   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/buss/procu_note/cbsProcurementNoteList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#cbsProcurementNoteListtb").find("input[name='warranty_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsProcurementNoteListtb").find("input[name='warranty_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsProcurementNoteListtb").find("input[name='createDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsProcurementNoteListtb").find("input[name='createDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsProcurementNoteListtb").find("input[name='updateDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#cbsProcurementNoteListtb").find("input[name='updateDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'cbsProcurementNoteController.do?upload', "cbsProcurementNoteList");
}

//导出
function ExportXls() {
	JeecgExcelExport("cbsProcurementNoteController.do?exportXls","cbsProcurementNoteList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("cbsProcurementNoteController.do?exportXlsByT","cbsProcurementNoteList");
}
 </script>